//
//  CLproductViewCell.m
//  I-want-go
//
//  Created by dllo on 15/10/22.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "CLproductViewCell.h"
#import "CLscreen.h"
@implementation CLproductViewCell
- (void)dealloc {
    [_myImage release];
    [_myLabel release];
    [super dealloc];
    [_priceLabel release];
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.myLabel = [[UILabel alloc] initWithFrame:CGRectMake(20 * SWIDTH, 150 * SHEIGHT, 140 * SWIDTH, 10 * SHEIGHT)];
        self.myLabel.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:self.myLabel];
        self.myLabel.font = [UIFont systemFontOfSize:14];
        self.myLabel.textAlignment = NSTextAlignmentCenter;
        [_myLabel release];
        
        self.myImage = [[UIImageView alloc] initWithFrame:CGRectMake(20 * SWIDTH, 10 * SHEIGHT, 140 * SWIDTH, 130 * SHEIGHT)];
        self.myImage.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:self.myImage];
        [_myImage release];
        
        self.priceLabel = [[UILabel alloc] initWithFrame:CGRectMake(40 * SWIDTH, 170 * SHEIGHT, 100 * SWIDTH, 10 * SHEIGHT)];
        self.priceLabel.textAlignment = NSTextAlignmentCenter;
        self.priceLabel.backgroundColor = [UIColor whiteColor];
        self.priceLabel.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:self.priceLabel];
        [_priceLabel release];
    }
    
    return self;
}






@end
